iOS universal links: excluded path opens in my app

Hello.

Here is my AASA file (my appID changed):

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appIDs": [ "A123B4567C.app.myapp.tool" ],
                "components": [
                    { "/": "/en", "exclude": true },
                    { "/": "/en/*", "exclude": true },
                    { "/": "/workspace/*", "exclude": true },
                    { "/": "*" }
                ],
                "paths": [ "NOT /en", "NOT /en/*", "NOT /workspace/*", "*" ]
            }
        ]
    }
}

I need to open all links with my app except those with excluded flag.

When I open 'right' links, my app opens them (that's great).

When I open excluded link (e.g. https://myapp.app/workspace/personal) Safari opens it (that's great) but then the app is launched (that's what not expected).

What I already checked:

  • added the old "paths" property (it wasn't there originally)
  • rebooted my device
  • reinstalled my app from the TestFlight then from the AppStore
  • asked ChatGPT
  • used AASA validator (branch.io one)
  • cleared Safari cache
  • checked my links for redirects

What else can I check? Thanks.

Hi @Trand , if you're still having this problem, please respond here with your App ID so I can look further into your issue!

Hi,

Im having a similar issue. I need my app to open all other links except domain.com. But clicking on domain.com still opens the app though I have added 'excluded': true. Below is my aasa file

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "com.domain",
                "paths": ["NOT /"],
		            "components": [
                    {
                        "/": "/",
                        "exclude": true
                    },
                    {
                        "/": "/biz/*"
                    },
                    {
                        "/": "/offers/deal-detail*",
			            "?": { "oId": "*" }
                    },
                    {
                        "/": "/review/*"
                    },
                    {
                        "/": "/emailActionHandler*"
                    }
                ]
            }
        ]
    }
}

I have also tried to verify this with swcutil tool, and it gives the right matches and blocks 'domain.com'. But the actual behavior on an iOS device is not the same.

iOS universal links: excluded path opens in my app
 
 
Q